package com.hp.snap.gr.model.jaxb;

import javax.xml.bind.annotation.*;


/**
 * <p>Java class for ActionType complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType name="ActionType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="AllowFailCondition" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="timeout" type="{http://www.w3.org/2001/XMLSchema}long" />
 *       &lt;attribute name="manualIntervention" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       &lt;attribute name="manualInterventionHint" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ActionType", propOrder = {
        "allowFailCondition"
})
@XmlSeeAlso({
        SNMPTrapActionType.class,
        RESTfulInvokeActionType.class,
        ExportMySqlDBActionType.class,
        SCPFromRemoteActionType.class,
        ExportVoltDBConfigurationActionType.class,
        FileReplaceActionType.class,
        RemoteShellActionType.class,
        SCPToRemoteActionType.class,
        GeneralActionType.class,
        ImportVoltDBConfigurationActionType.class,
        LocalShellActionType.class
})
public class ActionType implements Cloneable {

    @XmlElement(name = "AllowFailCondition")
    protected String allowFailCondition;
    @XmlAttribute(required = true)
    protected String name;
    @XmlAttribute
    protected Long timeout;
    @XmlAttribute
    protected Boolean manualIntervention;
    @XmlAttribute
    protected String manualInterventionHint;

    /**
     * Gets the value of the allowFailCondition property.
     *
     * @return possible object is
     * {@link String }
     */
    public String getAllowFailCondition() {
        return allowFailCondition;
    }

    /**
     * Sets the value of the allowFailCondition property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setAllowFailCondition(String value) {
        this.allowFailCondition = value;
    }

    /**
     * Gets the value of the name property.
     *
     * @return possible object is
     * {@link String }
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * Gets the value of the timeout property.
     *
     * @return possible object is
     * {@link Long }
     */
    public Long getTimeout() {
        return timeout == null ? 0 : timeout;
    }

    /**
     * Sets the value of the timeout property.
     *
     * @param value allowed object is
     *              {@link Long }
     */
    public void setTimeout(Long value) {
        this.timeout = value;
    }

    /**
     * Gets the value of the manualIntervention property.
     *
     * @return possible object is
     * {@link Boolean }
     */
    public Boolean isManualIntervention() {
        return manualIntervention == null ? false : manualIntervention;
    }

    /**
     * Sets the value of the manualIntervention property.
     *
     * @param value allowed object is
     *              {@link Boolean }
     */
    public void setManualIntervention(Boolean value) {
        this.manualIntervention = value;
    }

    /**
     * Gets the value of the manualInterventionHint property.
     *
     * @return possible object is
     * {@link String }
     */
    public String getManualInterventionHint() {
        return manualInterventionHint;
    }

    /**
     * Sets the value of the manualInterventionHint property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setManualInterventionHint(String value) {
        this.manualInterventionHint = value;
    }


    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
